<!--ng-click="options.templateOptions['onClick'](model[options.key], options, this, $event ,model);"-->
<div class="panel panel-info">
    <div class="panel-heading">
        <strong class="control-label" ng-if="to.label">
            {{to.label}}
        </strong>
        <ul class="panel-heading-tabs border-light">
            <li>
                <div class="pull-right">
                    <a href="#" class="btn-sm btn-transparent" style="color:#ffffff;"  
                    ng-click="options.templateOptions['openModal']('lg',options,to.modal,model[options.key]);"   type="button"><i class="glyphicon glyphicon-search"></i></a>
                </div>
            </li>
        </ul>
    </div>
    <div class="panel-body" ng-model="model[options.key]" formly-custom-validation="options.validators">   
        <div ng-repeat="useritem in model[options.key]" >
            <div class="input-group col-xs-12">
                <div class="col-xs-2">
                    <label class="control-label ng-binding ng-scope">姓名*</label>
                    <div class="input-group">
                        <input class="form-control" type="text" ng-value="useritem.name" disabled="disabled"/>
                    </div>
                </div>
                <div class="col-xs-2">
                    <label class="control-label">部门</label>
                    <div class="input-group">
                        <input class="form-control" ng-value="useritem.department" type="text" disabled="disabled" />
                    </div>
                </div>
                <div class="col-xs-2">
                    <label class="control-label">邮箱</label>
                    <div class="input-group">
                        <input class="form-control" ng-value="useritem.email" type="text" disabled="disabled" />
                    </div>
                </div>
                <div class="col-xs-2">
                    <label class="control-label">手机</label>
                    <div class="input-group">
                        <input class="form-control" ng-value="useritem.phone" type="text" disabled="disabled" />
                    </div>
                </div>
                <div class="col-xs-2">
                    <label class="control-label">电话</label>
                    <div class="input-group">
                        <input class="form-control" ng-value="useritem.mphone" type="text" disabled="disabled" />
                    </div>
                </div>
                <div class="col-xs-2">
                    <div class="input-group">
                        <button ng-click="remove(useritem.id)"><i class="fa fa-times"/></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>